package com.data.app;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableScheduling //开启定时任务
@SpringBootApplication
public class StartApplication {
    private static Logger logger = LoggerFactory.getLogger(StartApplication.class);

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StartApplication.class, args);
        System.out.println("<<<<<< app数据对接互联网执法监管系统 >>>>>>");
        Environment environment = context.getBean(Environment.class);
        System.out.println("访问链接：http://"+environment.getProperty("server.ip")+":" + environment.getProperty("server.port") + environment.getProperty("server.servlet.context-path"));
    }


}
